package com.twu.biblioteca.Models;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * User: spacetime
 * Date: 8/16/13
 * Time: 7:33 PM
 */
public class UserList {

    private static HashMap<String, User> userHashMap = new HashMap<String, User>();

    public void addUser(User user) {
        userHashMap.put(user.getUsername(), user);
    }

    public User getUserWithUsername(String username) {
        return userHashMap.get(username);
    }
}
